<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>   
    <base href="<%=basePath%>"/>
    <title>广元电业局低质易耗品管理平台</title>
	<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript">
function showCategory(){
	var x = window.showModalDialog("CategoryTree.jsp",null,"dialogWidth=300px;dialogHeight=400px");
	var catid=x.substring(0, x.indexOf(",", 0));
	var catname=x.substring((x.indexOf(",", 0)+1), x.length);
	var selectCategory=document.getElementById("selectCategory");
	var category=document.getElementById("category");
	if(catname!="undefined" && catid!="undefined"){
		category.value=catname;
		selectCategory.value=catid;
	}
}
</script>
</head>

<body class="ContentBody">
<div class="MainDiv">
	<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
		<tr>
			<th class="tablestyle_title" >资产明细值查看</th>
		</tr>
		<tr>
			<td class="CPanel">
			<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
				<tr>		
					<td width="100%">
						<fieldset style="height:100%;">
						<legend>资产明细值</legend>			      
							<table border="0" cellpadding="2" cellspacing="1" style="width:100%">	
								<tr>									  
									<td align="right">资产名称：</td>
									<td align="left"><s:property value="assetCard.acname" /></td>
									<td align="right">资产简称：</td>
									<td align="left"><s:property value="assetCard.acanothername" /></td>                      			     
								</tr>		    
								<tr>
									<td align="right">资产规格：</td>
									<td align="left"><s:property value="assetCard.category.catnorms" /></td>      
									<td align="right">资产状态：</td>
									<td align="left"><s:property value="zhuangTai" /></td>  
								</tr>
								<tr>
									<td align="right">资金来源：</td>
									<td align="left"><s:property value="assetCard.assetcomefrom" /></td>             
									<td align="right">凭证编号：</td>
									<td align="left"><s:property value="assetCard.orderid" /></td>  
								</tr>
								<tr>
									<td align="right">会计科目：</td>
									<td align="left"><s:property value="assetCard.accountsubject" /></td>             
									<td align="right">使用期限：</td>
									<td align="left"><s:property value="assetCard.lifetime" /></td>  
								</tr>
								<tr>
									<td align="right">单价：</td>
									<td align="left"><s:property value="assetCard.reportprice" /></td>             
									<td align="right">计量单位：</td>
									<td align="left"><s:property value="assetCard.category.catunit" /></td>  
								</tr>
								<tr>
									<td align="right">生产厂家：</td>
									<td align="left"><s:property value="assetCard.producer" /></td>             
									<td align="right">生产日期：</td>
									<td align="left"><fmt:formatDate value='${assetCard.producedate}' pattern='yyyy-MM-dd'/></td>  
								</tr>
								<tr>
									<td align="right">预计使用期限：</td>
									<td align="left"><fmt:formatDate value='${assetCard.planstopdate}' pattern='yyyy-MM-dd'/></td>             
									<td align="right">实际使用期限：</td>
									<td align="left"><fmt:formatDate value='${assetCard.actualstopdate}' pattern='yyyy-MM-dd'/></td>  
								</tr>
								<tr>
									<td align="right">申报部门：</td>
									<td align="left"><s:property value="assetCard.reportdepartment" /></td>
								</tr>
								<tr>           
									<td align="right">申报原因：</td>
									<td align="left" colspan="3"><s:property value="assetCard.reportreason" /></td>  
								</tr>
							</table>
							<br />
						</fieldset>
					</td>
				</tr>
			</table>	
			</td>
		</tr>			
		<tr>
			<td colspan="2" align="center" height="50px">
			<input type="button"  value="刷新" onclick="window.location.href='getAssetCardById.action?acid=<s:property value="assetCard.acid" />'"/>　
			<input type="button" value="返回" onclick="window.history.go(-1);"/>
			</td>
		</tr> 
	</table>
</div>
</body>
</html>

